<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/pages/common/meta.jsp"%>
<div id="quickentryModule" class="ys-module-wrap kuaijie-box">
    <div class="ys-module-title">
        <h2>快捷入口</h2>
    </div>
    <div class="ys-module-con">
        <ul class="rukouul">
            <!--@author Sunny by 20181102
            以下角色不显示新工单快捷入口
            总部客服角色，总部客服领导角色，省中心客服角色，省中心客服领导角色，呼叫中心客服角色，呼叫中心客服领导角色-->
			<!-- 20190621 暂时隐藏此功能 -->
<%--             <c:if test="${roleCode != 'hqcs' && roleCode != 'hqcsl' &&
                           roleCode != 'pccs' && roleCode != 'pccsl' &&
                           roleCode != 'cccs' && roleCode != 'cccsl'}">
                <li>
                    <a href="javascript:void(0);" id="queryWorkorder">
                        <img src="${ctx}/uce/images/xgd_img.jpg"/>
                        <span>新工单</span>
                    </a>
                </li>
            </c:if> --%>
            <li>
<%--                <a href="javascript:void(0);" id="queryWaybill">--%>
<%--                    <img src="${ctx}/uce/images/cyd_img.jpg"/>--%>
<%--                    <span>查运单</span>--%>
<%--                </a>--%>
            </li>
            <%--<li id="queryCustomer${jsTimer}">--%>
                <%--<a href="javascript:void(0);" id="qureyCustomer">--%>
                    <%--<img src="${ctx}/uce/images/ckh_img.jpg"/>--%>
                    <%--<span>查客户</span>--%>
                <%--</a>--%>
            <%--</li>--%>
        </ul>
    </div>
</div>
<script type="text/javascript">
    $("#quickentryModule #queryWorkorder").click(function () {
        var roleCode = "${roleCode}";
        if(roleCode == 'bcs'){
            openTabCrossDomainIcsSimple("csProblemOrder_add","新增问题件工单",'/cs/CsProblemOrder/add.do',true,0,portal_global_systemCode,true);
        }else{
            openTabCrossDomainIcsSimple("csWoCustSer_detail_1_noview_1_1","新增客服服务类工单","/cs/CsWoCustSer/detail/-1/noview/-1/1/.do",true,0,portal_global_systemCode,false);
        }
    });

    $("#quickentryModule #queryWaybill").click(function () {
        openTabCrossDomainIcsSimple("wayBill_infomation","查运单","/cs/wayBill/infomation.do",true,0,portal_global_systemCode,false);
//        var tab = new HgUi.Tab();
//        tab.commonAdd("全部运单", "/cs/CsWaybillInformation/view/all", null, null);
    });

    $("#quickentryModule #qureyCustomer").click(function () {
        openTabCrossDomainIcsSimple("csCustomerInfomation_CsCustomerInformationList_view","客户列表",'/cs/CsCustomerInfomation/CsCustomerInformationList_view.do',true,0,portal_global_systemCode,false);
//        var tab = new HgUi.Tab();
//        tab.commonAdd("客户基础资料", "/cs/CsCustomerInformation/view", null, null);
    });
</script>